﻿<%@ Page Language="C#"  EnableEventValidation="false" AutoEventWireup="true" CodeBehind="RewardsList.aspx.cs" Inherits="UI.ModSalesman.RewardsList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>奖惩记录列表</title>
      <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
  <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            奖惩记录</div>
        <div class="pagetopright">
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px" 
                TabIndex="1"></asp:TextBox>
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px" 
                 maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" TabIndex="2"></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px" 
                 maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" TabIndex="3"></asp:TextBox>
        <asp:DropDownList ID="ddlDeptID" runat="server" CssClass="InputCss">
         </asp:DropDownList>
           <asp:DropDownList ID="ddlType" runat="server" CssClass="InputCss">
              <asp:ListItem Value="0" Selected="True">类别</asp:ListItem>
                    <asp:ListItem Value="奖励">奖励</asp:ListItem>
                    <asp:ListItem Value="惩罚">惩罚</asp:ListItem>
                </asp:DropDownList>
            <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                CssClass="ButtonCss" TabIndex="4" />
            &nbsp;<asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss" 
                OnClick="btnAdd_Click" TabIndex="7" />
            &nbsp;<asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" 
                OnClick="btnExcel_Click" TabIndex="7" />
            &nbsp;
        </div>
    </div>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="RewardsID" Width="100%" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
        CellPadding="3" GridLines="Horizontal" OnRowDataBound="gvList_RowDataBound">
        <Columns>
            <asp:BoundField DataField="RewardsID" HeaderText="RewardsID" SortExpression="RewardsID">
            </asp:BoundField>
            <asp:TemplateField HeaderText="员工工号" SortExpression="EmpCode">
                <ItemTemplate>
                    <a href="javascript:ShowLink('RewardsAdd.aspx?RewardsID=<%# Eval("RewardsID")%>',800,550)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="90px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="员工姓名" SortExpression="EmpName">
                <ItemTemplate>
                    <a href="javascript:ShowLink('RewardsAdd.aspx?RewardsID=<%# Eval("RewardsID")%>',800,550)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
             <asp:BoundField DataField="DeptName" HeaderText="部门" SortExpression="DeptName">
                <ItemStyle Width="100px" />
            </asp:BoundField>            
            <asp:BoundField DataField="DutyName" HeaderText="职务" SortExpression="DutyName">
                <ItemStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="StateName" HeaderText="在职状态" SortExpression="StateName">
                <ItemStyle Width="70px" />
            </asp:BoundField>
             <asp:BoundField DataField="RewardsType" HeaderText="类别" SortExpression="RewardsType">
                <ItemStyle Width="40px" />
            </asp:BoundField>
              <asp:BoundField DataField="RewardsTime" HeaderText="奖惩时间" DataFormatString="{0:d}" SortExpression="RewardsTime">
                <ItemStyle Width="90px" />
            </asp:BoundField>  
             
            <asp:BoundField DataField="RewardsAmount" HeaderText="奖惩金额"  SortExpression="RewardsAmount">
                <ItemStyle Width="100px" />
            </asp:BoundField>

            <asp:BoundField DataField="RewardsReason" HeaderText="事由" SortExpression="RewardsReason">
                <ItemStyle Width="150px" />
            </asp:BoundField>
                  
         
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />      
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
        <div id="divAmount" class="amountLine">
        共有记录数:<asp:Label ID="lbAmount" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
